<?php
class GoogleCheckoutsController extends AppController {
	var $name = 'GoogleCheckouts';
	var $uses = array('Product','Cart','Order','Paymentmethod','AddressBook','AddressBookField');
	var $components = array('Session','Email','GoogleCheckout');
	var $merchantID = "124685019490014";
	var $merchantKey = "TPjOIsoFT_DZrB4VETCMKw";
	var $checkoutTesting = "sandbox"; //uses sandbox environment if true
	var $continueShopping = "http://www.authenticavenue.co.cc/"; //set your page to continue shopping on 
	
	function beforeFilter(){
		parent::beforeFilter();
		$this->Auth->allowedActions=array('*');
	}
	
	function process(){
		$this->layout=false;
		$item=$this->GoogleCheckout->setItem("Dry Food Pack AA1453","A pack of highly nutritious dried food for emergency", 2, 24.99);
	}
	
	function process_response(){
		$this->GoogleCheckout->process_response();
	}
}
?>